<!DOCTYPE html>
<html lang="zh_CN" xmlns:th="http://www.thymeleaf.org">
<head>
    <title>上架列表</title>
    <th:block th:include="~{common/common::commonHead}"/>
    <script th:src="@{/js/goods/publishList.js}"></script>
</head>
<!-- /Head -->
<!-- Body -->
<body>
<!-- Page Body -->
<div class="page-body">
    <div class="panel panel-primary">
        <div class="panel-heading bg-blue">
            上架信息列表
        </div>
        <div class="widget-body grid-table">
            <div class="toolbar">
                <div class="fl-left">
                    <button data-menu-id="010207" data-click="upAudit()" class="btn btn-blue shiny">上架申请</button>
                    <button data-menu-id="010201" data-click="upAuditPass()" class="btn btn-blue shiny">上架通过</button>
                    <button data-menu-id="010202" data-click="upAuditFail()" class="btn btn-blue shiny">上架不通过</button>
                    <button data-menu-id="010204" data-click="downAudit()" class="btn btn-blue shiny">下架申请</button>
                    <button data-menu-id="010205" data-click="downAuditPass()" class="btn btn-blue shiny">下架通过</button>
                    <button data-menu-id="010206" data-click="downAuditFail()" class="btn btn-blue shiny">下架不通过</button>
                    <button data-menu-id="010208" data-click="down()" class="btn btn-blue shiny">下架</button>
                    <button data-menu-id="010210" data-click="failConfirm()" class="btn btn-blue shiny">驳回处理</button>
                    <button data-menu-id="010209" data-click="batchDel()" class="btn btn-danger shiny">批量删除</button>
                </div>
                <div class="toolbar-right">
                    <div class="fl-right">
                        <div class="btn-group" role="group">
                            <button data-click="toggleFilter()" class="btn btn-default text-center">
                                <i class="fa fa-filter fa-fw"></i>
                            </button>
                            <button data-click="refresh('publishList')" class="btn btn-default">
                                <i class="fa fa-refresh fa-fw"></i>
                            </button>
                            <button data-click="download('publishList')" class="btn btn-default">
                                <i class="fa fa-download fa-fw"></i>
                            </button>
                        </div>
                    </div>
                </div>
            </div>
            <div id="publishList"></div>
            <!--筛选-->
            <form class="filter search-content form-horizontal" role="form">
                <div class="col-xs-6">
                    <div class="form-group">
                        <label class="col-xs-4 control-label"> 监所 </label>
                        <div class="col-xs-8">
                            <div class="iconic-input right">
                                <select id="prisonsId" name="prisonsId" class="form-control spinner" data-url="org/listPrison" data-value-field="id" data-text-field="orgName" >
                                    <option value="">请选择监所</option>
                                </select>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="col-xs-6">
                    <div class="form-group">
                        <label class="col-xs-4 control-label"> 商品名称 </label>
                        <div class="col-xs-8">
                            <div class="iconic-input right">
                                <input name="goodsName" type="text" class="form-control spinner"
                                       placeholder="商品名称">
                            </div>
                        </div>
                    </div>
                </div>
                <div class="col-xs-6">
                    <div class="form-group">
                        <label class="col-xs-4 control-label"> 商品类型 </label>
                        <div class="col-xs-8">
                            <select name="goodsType" class="form-control" data-url="goods/listGoodsType" data-value-field="id" data-text-field="typeName">
                                <option value="-1">全部</option>
                            </select>
                        </div>
                    </div>
                </div>
                <div class="col-xs-6">
                    <div class="form-group">
                        <label class="col-xs-4 control-label"> 商品状态 </label>
                        <div class="col-xs-8">
                            <select name="goodsStatus" class="form-control" data-url="goodsPublish/listGoodsPublicStatus" data-value-field="value" data-text-field="desc">
                                <option value="-1">全部</option>
                            </select>
                        </div>
                    </div>
                </div>
                <div class="col-xs-12">
                    <button type="button" data-click="hideFilter()" class="btn btn-default pull-right">取消</button>
                    <button type="button" data-click="submitFilter('publishList')" class="btn btn-blue pull-right">确定</button>
                </div>
            </form>
            <!--筛选-->
        </div><!-- end of panel -->
    </div>
</div>
</body>
<!--  /Body -->
</html>